﻿using Soft.Net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Soft.Service
{

    /// <summary>
    /// 发送服务信息的UDP广播
    /// </summary>
    public sealed class ServiceInfoSendBroadcast : UDPBroadcastSend
    {
        public ServiceInfoSendBroadcast()
        {
            base.Port = NetManager.JobServiceOnlineUDPPort;
        }

        public Result Send(UdpBroadcastItem item)
        {
            byte[] data = ToolsClass.StructToBytes<UdpBroadcastItem>(item);
            return base.Send(data);
        }
    }
}
